<h1>Feeds</h1>
<table class="index">
	<thead>
		<tr>
			<th>Name</th>
			<th>URL</th>
			<th>Updated at</th>
			<th colspan="2">Modify</th>
		</tr>
	</thead>
	<tbody>
		<% if @feeds.empty? -%>
		<tr>
			<td class="note" colspan="4">No Feeds</td>
		</tr>
		<% else -%>
			<% for feed in @feeds %>
			<tr class="node">
				<td class="feed"><%= link_to feed[:name], edit_feed_path(feed) %></td>
				<td><a href="<%= feed[:url] %>"><%= feed[:url][0..64] %><%= "..." if feed[:url].length > 63 %></a></td>
				<td><%= feed[:updated_at].strftime "%Y-%m-%d, %H:%M" %></td>
				<td class="remove" colspan="2"><%= link_to(image('remove', :alt => 'remove feed'), feed_path(feed), :confirm => "Really delete feed '#{feed[:name]}' ?", :method => :delete) %></td>
			</tr>
			<% end -%>
		<% end -%>
	</tbody>
</table>
<%= link_to "New Feed", :controller => "admin/feeds", :action => "new" %>
